<script type="text/javascript">
    var base_index_url     = '{{$base_index_url}}';
    var current_controller = '{{$current_controller}}';
    var current_module     = '{{$current_module}}';
    var current_view       = '{{$current_view}}';
    function include_param(value){
        var pieces = new Array();
        protocol = window.location.protocol.toString()+"//";
        rest = window.location.toString().replace(protocol,"" );
        pieces = php_js.explode("/",rest);
        var found = false;
        for(i=0;i<pieces.length && !found;i++){
            if(pieces[i].substr(0,2)=="p~"){
                if(value.length>0){
                    pieces[i] = "p~"+ value;
                    found = true;
                }else{
                    pieces[i] = "";
                }
            }
        }
        if(!found && value.length>0){
            pieces.push("p~"+ value);
        }

        var new_url = protocol + php_js.implode("/",pieces);
        window.location = new_url;
    }
</script>
<script src="{{$core_js}}/phpfuncs.commonjs.min.js" type="text/javascript"></script>

<script src="{{$core_js}}/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="{{$core_js}}/webwidget_vertical_menu.js" type="text/javascript"></script>

<link rel="stylesheet" type="text/css" href="{{$core_js}}/datatables/css/demo_table.css" />
<script src="{{$core_js}}/datatables/jquery.dataTables.min.js" type="text/javascript"></script>

<link rel="stylesheet" type="text/css" href="{{$core_js}}/ui/1.8.5/css/ui-lightness/jquery-ui-1.8.5.custom.css" />
<script src="{{$core_js}}/ui/1.8.5/jquery-ui-1.8.5.custom.min.js" type="text/javascript"></script>

<script src="{{$core_js}}/jquery.blockUI.js" type="text/javascript"></script>

<script src="{{$base_url}}/application/modules/favorite/js/favorite.js" type="text/javascript"></script>